package openbang.account.service.vo;

/**
 * 分组的类型定义 : 
 * 
 * @author aibo zeng
 *
 */

public enum GroupTypeEnum {
	MEDIA (0,"图片"),
	FRIEND(10,"好友");


	private Integer code;
	private String desc;
	
	private GroupTypeEnum(Integer code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	public int getCode() {
		return code;
	}
	public String getDesc(){
		return desc;
	}
	
	public static String getDesc(Integer code) {
		for(GroupTypeEnum each : GroupTypeEnum.values()) {
			if(each.getCode()==code)
				return each.getDesc();
		}		
		return "";
	}
}
